package com.gexin.model.activity;

import com.gexin.model.activity.base.BaseIntegralPool;
import org.apache.logging.log4j.core.util.UuidUtil;

import java.util.Date;

/**
 * 业务名称:  t_integral_pool() 
 */
@SuppressWarnings("serial")
public class IntegralPool extends BaseIntegralPool<IntegralPool> {
	public static final IntegralPool dao = new IntegralPool();


	public void setDailyCountBalance(Long dailyCountBalance){
		this.setId(UuidUtil.UUID_SEQUENCE);
 		this.setDailyCountBalance(dailyCountBalance);
		long date = new Date().getTime();
		this.setCreateTime(date);
		this.setUpdateTime(date);
	}

	public void setRemainBalance(Long remainBalance){
		this.setId(UuidUtil.UUID_SEQUENCE);
		this.setRemainBalance(remainBalance);
 		long date = new Date().getTime();
		this.setCreateTime(date);
		this.setUpdateTime(date);
	}


	public IntegralPool getIntegralPool() {
		IntegralPool IntegralPool = com.gexin.model.activity.IntegralPool.dao.findFirst("select * from t_integral_pool");
		return IntegralPool;
	}
}
